package com.ruoyi.iot.mapper;

import com.ruoyi.iot.domain.YcDeviceData;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


public interface IotDeviceDataMapper {


    @Select("<script>" +
            " insert into yc_tr_data " +
            "    (id, cjrq, device_code, var_id, var_name, channel_id, cj_data, var_unit,format_value) " +
            "    values " +
            "    (#{d.id}, #{d.cjrq}, #{d.deviceCode}, #{d.varId}, " +
            "    #{d.varName}, #{d.channelId}, #{d.cjData}, #{d.varUnit}, #{d.formatValue}) " +
            "</script>"
    )
    void insertDeviceData(@Param("d")YcDeviceData deviceData);
}
